package com.example.cursor_orm.model;

/**
 * 角色权限关联模型类
 * 对应数据库表: role_permission
 */
public class RolePermission {
    private Integer roleId;
    private Integer permissionId;

    // 构造函数
    public RolePermission() {}

    public RolePermission(Integer roleId, Integer permissionId) {
        this.roleId = roleId;
        this.permissionId = permissionId;
    }

    // Getter和Setter方法
    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Integer permissionId) {
        this.permissionId = permissionId;
    }

    @Override
    public String toString() {
        return "RolePermission{" +
               "roleId=" + roleId +
               ", permissionId=" + permissionId +
               '}';
    }
} 